package org.makcro.sms.services.chat.web.client;

import com.extjs.gxt.ui.client.event.EventType;
import com.extjs.gxt.ui.client.mvc.AppEvent;

/**
 * Manager pattern for the {@link AppEvent} of this application
 * 
 * @author makcro
 * 
 */
public class AppEvents {

	public static final EventType	Init							= new EventType();

	public static final EventType	ShowLoginDialog					= new EventType();

	public static final EventType	ProcessLogin					= new EventType();

	public static final EventType	LoginFailed						= new EventType();

	public static final EventType	LoginSuccessful					= new EventType();

	public static final EventType	LOGOUT_REQUESTED				= new EventType();

	public static final EventType	NewQuestionsFound				= new EventType();

	public static final EventType	PREPARE_ANSWER					= new EventType();

	public static final EventType	ANSWER_TEXT_CHANGED				= new EventType();

	public static final EventType	QUESTION_DOUBLE_CLICK			= new EventType();

	public static final EventType	ANSWER_DIALOG_HIDDEN			= new EventType();

	public static final EventType	ANSWER_ABOUT_TO_BE_SENT			= new EventType();

	public static final EventType	QUESTION_RESERVATION_CANCELED	= new EventType();

	public static final EventType	AGENT_MESSAGES_UPDATE			= new EventType();

	public static final EventType	ANSWER_SENT						= new EventType();

	public static final EventType	ALL_MESSAGES_UPDATE				= new EventType();

	public static final EventType	NEW_MESSAGES_UPDATE				= new EventType();

	public static final EventType	ANSWER_SENDING_FAILED			= new EventType();

	public static class BulkEvents {

		public static final EventType	SEND_BULK_REQUESTED				= new EventType();
		public static final EventType	BULK_MESSAGE_ABOUT_TO_BE_SENT	= new EventType();
		public static final EventType	BULK_MESSAGES_SENT				= new EventType();
		public static final EventType	BULK_SENDING_FAILED				= new EventType();

	}
}
